layui.define(function(e) {
	layui.use(["admin", "carousel"], function() {
		var e = layui.$,
			a = (layui.admin, layui.carousel),
			t = layui.element,
			i = layui.device();
		e(".layadmin-carousel").each(function() {
			var t = e(this);
			a.render({
				elem: this,
				width: "100%",
				arrow: "none",
				interval: t.data("interval"),
				autoplay: t.data("autoplay") === !0,
				trigger: i.ios || i.android ? "click" : "hover",
				anim: t.data("anim")
			})
		}), t.render("progress")
	}), layui.use(["carousel", "echarts"], function() {
		var e = layui.$,
			a = (layui.carousel, layui.echarts);
		initCharts = function(option, id, func) {
			var t = [],
				n = e("#" + id).children("div"),
				l = function(e) {
					t[e] = a.init(n[e], layui.echartsTheme), t[e].setOption(option[e]), window.onresize = t[e].resize;
					t[e].on('click', function(params) {
						func(params)
					});
				};
			if(n[0]) {
				l(0);
			}
		}

		function clickObj(params) {

		}
		// 住院营业总表（费用细项）
		var o_department = [ {
    tooltip : {
        trigger: 'axis'
    },
    legend: {
        data:['金额']
    },
    calculable : true,
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            data : ['科室一', '科室二', '科室三']
        }
    ],
    yAxis : [
        {
            type : 'value'
        }
    ],
    series : [
        {
            name:'金额',
            type:'line',
            stack: '总量',
            data:[10, 20, 30]
        }
    ]
}]
		initCharts(o_department, "department_table", clickObj);
	}), e("collect_hospital_FYXX", {})
});